package com.kinyx.framework.annotation.assist;

import java.lang.annotation.ElementType;
import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.kinyx.framework.annotation.assist.ReturnNull.List;

/**
 * 标注返回值可为null
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.CLASS)
@Repeatable(List.class)
public @interface ReturnNull {

	/** @return 返回值为null时的情况说明 */
	String value();

	/**
	 * 标注返回值可为null
	 */
	@Target(ElementType.METHOD)
	@Retention(RetentionPolicy.CLASS)
	@interface List { ReturnNull[] value(); }

}
